package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.ScenicComment;
import cn.wolfcode.luowowo.comment.domain.TravelComment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface IScenicCommentRepository extends MongoRepository<ScenicComment,String>{
    long countByScenicId(Long id);

    long countByScenicIdAndHasPhoto(long id, int hasPhoto);

    long countByScenicIdAndSynStarnum(Long id, int num);
}
